<template>
    <div>
        <h1 class="text-center">{{page1}}</h1>
        <ul class="text-center">
            <li  v-for="item in links" @click=$goRoute(item.route)>{{item.text}}</li>
        </ul>
        <router-view></router-view>
    </div>

</template>
<script>
    export default {
        data () {
            return {
                page1:"二号：page1",
                links:[
                    {
                        text:"1-a",
                        route:'/page1/page1_a'
                    },
                    {
                        text:"1-b",
                        route:"/page1/page1_b"
                    }
                ]
            }
        }
    }
</script>